-
-
Notifications
You must be signed in to change notification settings - Fork 43
Add CLI flag --gpu=drm|venus|software to support various GPU virtualization modes #195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
crates/muvm/src/bin/muvm.rs
Outdated
|
|
||
| let virgl_flags = VIRGLRENDERER_USE_EGL | ||
| | VIRGLRENDERER_DRM | ||
| | VIRGLRENDERER_NO_VIRGL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this flag supposed to be set unconditionally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, after submitting I realized I should've added a comment there – it's seems to only be strictly necessary when not having any dri nodes present (software-only with no GPU devices present, without this flag → guest hang)..
However, legacy virGL is not very desirable (especially in terms of security) and doesn't actually work anyway. So I think it's better to hard-disable it unconditionally.
Yes, please export that variable when Venus is selected. |
2bfe82d to
f5a3df8
Compare
|
@valpackett there's just a minor clippy issue remaining. Once fixed I think we can merge it and cut a new release. |
…zation modes vDRM is great, but not supported everywhere yet, so on some machines the only way to get GPU acceleration is via Venus. Also, make it possible to use software rendering only while still having working cross-domain Wayland. Signed-off-by: Val Packett <[email protected]>
f5a3df8 to
59cfdf9
Compare
|
Fixed \o/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
vDRM is great, but not supported everywhere yet, so on some machines the only way to get GPU acceleration is via Venus. Also, make it possible to use software rendering only while still having working cross-domain Wayland.
Should we also automatically set
MESA_LOADER_DRIVER_OVERRIDE=zinkwhen Venus is selected?